	.text
soma:
	PUSH BP
	ADDI BP, SP, 0
	ADDI SP, SP, -4
	LW R1, BP, 8
	LW R2, BP, 12
	ADD R3, R1, R2
	SW R3, BP, -4
	LW R4, BP, -4
	ADD RV, R4, R0
	ADDI SP, BP, 0
	POP BP
	RET
__start:
	ADDI SP, SP, -16
	ADDI R5, R0, 3
	SW R5, BP, -4
	ADDI R6, R0, 5
	SW R6, BP, -8
	LW R7, BP, -8
	PUSH R7
	LW R8, BP, -4
	PUSH R8
	CALL soma
	ADDI SP, SP, 8
	SW RV, BP, -12
	ADDI R9, R0, L0
	PUSH R9
	PUSHI 1
	SYSCALL
	ADDI SP, SP, 8
	LW R10, BP, -4
	PUSH R10
	PUSHI 0
	SYSCALL
	ADDI SP, SP, 8
	ADDI R11, R0, L1
	PUSH R11
	PUSHI 1
	SYSCALL
	ADDI SP, SP, 8
	LW R12, BP, -8
	PUSH R12
	PUSHI 0
	SYSCALL
	ADDI SP, SP, 8
	ADDI R13, R0, L2
	PUSH R13
	PUSHI 1
	SYSCALL
	ADDI SP, SP, 8
	LW R14, BP, -12
	PUSH R14
	PUSHI 0
	SYSCALL
	ADDI SP, SP, 8
	ADDI R15, R0, L3
	PUSH R15
	PUSHI 1
	SYSCALL
	ADDI SP, SP, 8
	LW R16, BP, -4
	LW R17, BP, -8
	PUSH R17
	LW R18, BP, -12
	PUSH R18
	CALL soma
	ADDI SP, SP, 8
	ADD R19, R16, RV
	SW R19, BP, -16
	LW R20, BP, -16
	ADDI R20, R20, 1
	SW R20, BP, -16
	LW R21, BP, -16
	PUSH R21
	PUSHI 0
	SYSCALL
	ADDI SP, SP, 8
	ADDI R22, R0, L4
	PUSH R22
	PUSHI 1
	SYSCALL
	ADDI SP, SP, 8
	STOP
	.data
	L0:	"A soma de a, valendo "
	L1:	" com b, valendo "
	L2:	" e igual a "
	L3:	"\n"
	L4:	"\n"
